package com.wjm.crud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wjm.crud.dao.DepartmentMapper;
import com.wjm.crud.entity.Department;
import com.wjm.crud.service.IDepartmentService;



@Service
public class DepartmentServiceImpl implements IDepartmentService{
	
	@Autowired
	private DepartmentMapper departmentMapper;

	@Override
	public List<Department> getDepts() {
		// TODO Auto-generated method stub
		return departmentMapper.selectByExample(null);
	}
}
